def tt(x):
    if x >= 0:
        result = (str(x))[::-1]
        #         要小于4B 否则溢出
        result = int(result)
    else:
        result = (str(-x))[::-1]
        result = -int(result)
    # if result >=2 ** 31 & result <= 2 ** 31-1:
    if result<=2 ** 31-1 & result>=-(2 ** 31):
        return result
    else:
        return 0
#---------------------------- python中不要写 | & 写成and和or

if __name__ == '__main__':
    print(123 <((2 ** 31)-1) and 123>-(2 ** 31))